import request from '@/utils/request'

export function getStudentCourseList(data) {
  return request({
    url: '/student-course/list',
    method: 'post',
    data
  })
}

export function saveStudentCourse(data) {
  return request({
    url: '/student-course',
    method: 'post',
    data
  })
}

export function updateStudentCourse(data) {
  return request({
    url: '/student-course',
    method: 'put',
    data
  })
}

export function deleteStudentCourse(id) {
  return request({
    url: `/student-course/${id}`,
    method: 'delete'
  })
}

export function batchDeleteStudentCourse(ids) {
  return request({
    url: '/student-course/batch',
    method: 'delete',
    data: ids
  })
} 